package com.atguigu.spring.beans.annotation.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import com.atguigu.spring.beans.annotation.service.UserService;

/**
 * @Controller: 标识表现层组件
 * 
 * @author liuxin
 *
 */
@Controller
public class UserController {

	@Autowired
	@Qualifier("userServiceImpl")
	private UserService userService;
	
	public void add(){
		System.out.println("UserController add...");
		userService.add();
	}
	
}
